/*
* Kendo UI Web v2013.3.1119 (http://kendoui.com)
* Copyright 2013 Telerik AD. All rights reserved.
*
* Kendo UI Web commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
* If you do not own a commercial license, this file shall be governed by the
* GNU General Public License (GPL) version 3.
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
*/
﻿(function( window, undefined ) {
    kendo.cultures["ro-RO"] = {
        name: "ro-RO",
        numberFormat: {
            pattern: ["-n"],
            decimals: 2,
            ",": ".",
            ".": ",",
            groupSize: [3],
            percent: {
                pattern: ["-n%","n%"],
                decimals: 2,
                ",": ".",
                ".": ",",
                groupSize: [3],
                symbol: "%"
            },
            currency: {
                pattern: ["-n $","n $"],
                decimals: 2,
                ",": ".",
                ".": ",",
                groupSize: [3],
                symbol: "lei"
            }
        },
        calendars: {
            standard: {
                days: {
                    names: ["duminică","luni","marţi","miercuri","joi","vineri","sâmbătă"],
                    namesAbbr: ["D","L","Ma","Mi","J","V","S"],
                    namesShort: ["D","L","Ma","Mi","J","V","S"]
                },
                months: {
                    names: ["ianuarie","zzfebruarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie",""],
                    namesAbbr: ["ian.","feb.","mar.","apr.","mai.","iun.","iul.","aug.","sep.","oct.","nov.","dec.",""]
                },
                AM: [""],
                PM: [""],
                patterns: {
                    d: "dd.MM.yyyy",
                    D: "d MMMM yyyy",
                    F: "d MMMM yyyy HH:mm:ss",
                    g: "dd.MM.yyyy HH:mm",
                    G: "dd.MM.yyyy HH:mm:ss",
                    m: "d MMMM",
                    M: "d MMMM",
                    s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss",
                    t: "HH:mm",
                    T: "HH:mm:ss",
                    u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'",
                    y: "MMMM yyyy",
                    Y: "MMMM yyyy"
                },
                "/": ".",
                ":": ":",
                firstDay: 1
            }
        }       
    }
})(this);

$(function () {
	$.extend(true, kendo.ui.Grid.prototype.options, {
		pageable: {
		    messages: {
		      display: "Se vizualizeaza {0}-{1} din {2} randuri",
		      empty: "Nu sunt date",
		      itemsPerPage: "randuri pe pagina"
		    }
		  },
		selectable: "row",
		groupable: {
    	    messages: {
    	      empty: "Trage coloana aici..."
    	    }
    	 },
		filterable: {
			extra: false,
 		    messages: {
 		        info: "Parametrii filtrarii:", // sets the text on top of the filter menu
 		        filter: "Filtreaza", // sets the text for the "Filter" button
 		        clear: "Curata", // sets the text for the "Clear" button

 		        // when filtering boolean numbers
 		        isTrue: "adevarat", // sets the text for "isTrue" radio button
 		        isFalse: "fals", // sets the text for "isFalse" radio button

 		        //changes the text of the "And" and "Or" of the filter menu
 		        and: "Si",
 		        or: "Sau"
 		    },
 		    operators: {
 		        //filter menu for "string" type columns
 		        string: {
 		        	contains: "Contine",
 		            eq: "Egal cu",
 		            neq: "Nu egal cu",
 		            startswith: "Se incepe cu",
 		            endswith: "Se termina cu"
 		        },
 		        //filter menu for "number" type columns
 		        number: {
 		            eq: "Egal cu",
 		            neq: "Nu egal cu",
 		            gte: "Mai mare sau egal de",
 		            gt: "Mai mare",
 		            lte: "Mai mic sau egal de",
 		            lt: "Mai mic de"
 		        },
 		        //filter menu for "date" type columns
 		        date: {
 		            eq: "Egal cu",
 		            neq: "Nu egal cu",
 		            gte: "Mai tirziu sau egal de",
 		            gt: "Mai tirziu de",
 		            lte: "Mai devreme sau egal de",
 		            lt: "Mai devreme"
 		        },
 		        //filter menu for foreign key values
 		        enums: {
 		            eq: "Egal cu",
 		            neq: "Nu este egal cu"
 		        }
 		    }
 		}
	})
})
